package com.neu.flashmall.user.mapper;

import com.neu.flashmall.user.entity.UmsAddress;
import com.neu.flashmall.user.entity.UmsUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 86151
* @description 针对表【ums_user(会员)】的数据库操作Mapper
* @createDate 2022-07-16 22:52:20
* @Entity com.neu.flashmall.user.entity.UmsUser
*/
@Mapper
public interface UmsUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UmsUser record);

    int insertSelective(UmsUser record);

    UmsUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UmsUser record);

    int updateByPrimaryKey(UmsUser record);

    List<UmsUser> selectAll();

    UmsUser selectByName(String name);

    UmsUser selectByPhone(String phone);

    UmsUser selectByUsername(@Param(value = "username") String username);
}
